package moplayer;


public class UtilRT {

	public static long getRhythmValueByDuration(String duration) {
		long result = 500;
		if (duration.equals("w")) {
			result = 2000;//RhythmValues.SEMIBREVE;
		} else if (duration.equals("h")) {
			result = 1000;//RhythmValues.MINIM;
		} else if (duration.equals("h*")) {
			result = 2000/3;//RhythmValues.MINIM_TRIPLET;
		} else if (duration.equals("q")) {
			result = 500;//RhythmValues.CROTCHET;
		}  else if (duration.equals("q*")) {
			result = 1000/3;//RhythmValues.CROTCHET_TRIPLET;
		} else if (duration.equals("i")) {
			result = 250;//RhythmValues.QUAVER;
		} else if (duration.equals("i*")) {
			result = 500/3;//RhythmValues.QUAVER_TRIPLET;
		} else if (duration.equals("s")) {
			result = 125;//RhythmValues.SEMI_QUAVER;
		} 
		return result;
	}
	
}
